]> dgit.raspbian.org Git - gnome-shell.git/commit
StThemeNode: handle url() in inline styles better
authorRay Strode <rstrode@redhat.com>
Wed, 8 Dec 2010 23:05:31 +0000 (18:05 -0500)
committerRay Strode <rstrode@redhat.com>
Mon, 13 Dec 2010 16:48:36 +0000 (11:48 -0500)
commitc648a5f117f0a642a540ca73c30dc366dc6f4257
treebd22131008e099763829598bbefbbb538902b608
parente562c863f709813402c8e1b7e70abf53e8fbff20
StThemeNode: handle url() in inline styles better

non-absolute paths specified as url()'s in
stylesheets are resolved to be relative to the location
of the stylesheets they are in.

Inline styles don't have physical styleshseets sitting on disk,
which leads to a crash in the url resolving code.

This commit ensures that we don't try to use the stylesheet associated
with a url, if there isn't one to use.

This commit doesn't try to handle relative paths in inline styles.
It only prevents crashes when absolute paths are used.

https://bugzilla.gnome.org/show_bug.cgi?id=636975
src/st/st-theme-node.c